Skip to contentSkip to conversation

Change in openvpn[master]: push-update-server: comment about `buf_string_compare_advance()` usag...

Openvpn-devel In review mrbff (Code Review) 3 participants 12 messages Sep 11, 2025 – Sep 12, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1757600733000.I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb@...2715...

#1 lore raw

Attention is currently required from: flichtenheld, plaisthos.

Hello plaisthos, flichtenheld,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email

to review the following change.

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate()
......................................................................

push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate()

Change-Id I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb

---
M src/openvpn/push_util.c

1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/1177/1

src/openvpn/push_util.c +4 -0
index bd3992b..68a5474 100644
@@ -161,6 +161,10 @@
          * will not be routed towards the client.
          * For the same reason we later update the vhash too in
          * `send_push_update()` function.
+         * Using `buf_string_compare_advance()` we mimic the behavio
+         * inside `process_incoming_push_msg()`. However, we don't need
+         * to check the return value here because we just want to `advance`,
+         * meaning we skip the `push_update_cmd' we added earlier.
          */
         buf_string_compare_advance(&msgs[i], push_update_cmd);
         if (process_incoming_push_update(c, pull_permission_mask(c), option_types_found, &msgs[i], true) == PUSH_MSG_ERROR)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 1
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: mrbff, plaisthos.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email )

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate()
......................................................................

Patch Set 1: Code-Review-1

(2 comments)

Commit Message:

http://gerrit.openvpn.net/c/openvpn/+/1177/comment/706858ca_c00b22de :
PS1, Line 7: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate() Typo "updaate"
Please remove useless quoting from commit message

File src/openvpn/push_util.c:

http://gerrit.openvpn.net/c/openvpn/+/1177/comment/c573bb74_31f8a270 :
PS1, Line 164: * Using buf_string_compare_advance() we mimic the behavio
Typo "behavio"

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 1
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: mrbff <[email protected]...>
Gerrit-Comment-Date: Thu, 11 Sep 2025 14:40:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

mrbff has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email )

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate()
......................................................................

Patch Set 1:

(2 comments)

Commit Message:

http://gerrit.openvpn.net/c/openvpn/+/1177/comment/a2fa433a_3504974c :
PS1, Line 7: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate()

Quoted 1 line

Typo "updaate" […]

Done

File src/openvpn/push_util.c:

http://gerrit.openvpn.net/c/openvpn/+/1177/comment/22bf7c07_9a8a7108 :
PS1, Line 164: * Using buf_string_compare_advance() we mimic the behavio

Quoted 1 line

Typo "behavio"

Done

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 1
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Thu, 11 Sep 2025 14:50:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Gerrit-MessageType: comment

#4 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

Hello flichtenheld, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()
......................................................................

push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()

Change-Id I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb

---
M src/openvpn/push_util.c

1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/1177/2

src/openvpn/push_util.c +4 -0
index bd3992b..f7a4fca 100644
@@ -161,6 +161,10 @@
          * will not be routed towards the client.
          * For the same reason we later update the vhash too in
          * `send_push_update()` function.
+         * Using `buf_string_compare_advance()` we mimic the behavior
+         * inside `process_incoming_push_msg()`. However, we don't need
+         * to check the return value here because we just want to `advance`,
+         * meaning we skip the `push_update_cmd' we added earlier.
          */
         buf_string_compare_advance(&msgs[i], push_update_cmd);
         if (process_incoming_push_update(c, pull_permission_mask(c), option_types_found, &msgs[i], true) == PUSH_MSG_ERROR)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 2
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset

#5 lore raw
In reply to a message not in the archive

Attention is currently required from: mrbff, plaisthos.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email )

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()
......................................................................

Patch Set 2: Code-Review-1

(1 comment)

Commit Message:

http://gerrit.openvpn.net/c/openvpn/+/1177/comment/d289ff3d_6607304a :
PS1, Line 7: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate()

Quoted 1 line

Done

You ignored the second part of this comment. Please remove the "`" quotes from the commit message. We don't do this.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 2
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: mrbff <[email protected]...>
Gerrit-Comment-Date: Thu, 11 Sep 2025 14:55:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: mrbff <[email protected]...>
Gerrit-MessageType: comment

#6 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

mrbff has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email )

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()
......................................................................

Patch Set 2:

(1 comment)

Commit Message:

http://gerrit.openvpn.net/c/openvpn/+/1177/comment/2729df5a_2d31f050 :
PS1, Line 7: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_updaate()

Quoted 1 line

You ignored the second part of this comment. Please remove the "`" quotes from the commit message. […]

Done

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 2
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Thu, 11 Sep 2025 18:33:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: mrbff <[email protected]...>
Gerrit-MessageType: comment

#7 lore raw

[Openvpn-devel] [XS] Change in openvpn[master]: push-update-server: comment about buf_string_compare_advance() usage ...

In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

Hello flichtenheld, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()
......................................................................

push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()

Change-Id I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb

---
M src/openvpn/push_util.c

1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/1177/3

src/openvpn/push_util.c +4 -0
index bd3992b..f7a4fca 100644
@@ -161,6 +161,10 @@
          * will not be routed towards the client.
          * For the same reason we later update the vhash too in
          * `send_push_update()` function.
+         * Using `buf_string_compare_advance()` we mimic the behavior
+         * inside `process_incoming_push_msg()`. However, we don't need
+         * to check the return value here because we just want to `advance`,
+         * meaning we skip the `push_update_cmd' we added earlier.
          */
         buf_string_compare_advance(&msgs[i], push_update_cmd);
         if (process_incoming_push_update(c, pull_permission_mask(c), option_types_found, &msgs[i], true) == PUSH_MSG_ERROR)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 3
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset

#8 lore raw

[Openvpn-devel] [XS] Change in openvpn[master]: push-update-server: comment about buf_string_compare_advance() usage ...

In reply to a message not in the archive

Attention is currently required from: mrbff, plaisthos.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email )

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()
......................................................................

Patch Set 3: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 3
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: mrbff <[email protected]...>
Gerrit-Comment-Date: Fri, 12 Sep 2025 09:47:03 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#9 lore raw

PATCH v3 1/1 push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()

In reply to a message not in the archive

From: Marco Baffo <[email protected]...>

Change-Id I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb

---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1177
This mail reflects revision 3 of this Change.

Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>

src/openvpn/push_util.c +4 -0
index bd3992b..f7a4fca 100644
@@ -161,6 +161,10 @@
          * will not be routed towards the client.
          * For the same reason we later update the vhash too in
          * `send_push_update()` function.
+         * Using `buf_string_compare_advance()` we mimic the behavior
+         * inside `process_incoming_push_msg()`. However, we don't need
+         * to check the return value here because we just want to `advance`,
+         * meaning we skip the `push_update_cmd' we added earlier.
          */
         buf_string_compare_advance(&msgs[i], push_update_cmd);
         if (process_incoming_push_update(c, pull_permission_mask(c), option_types_found, &msgs[i], true) == PUSH_MSG_ERROR)
#10 lore raw

[Openvpn-devel] [PATCH applied] Re: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()

Since this is only a comment, no testing is needed - and the comment itself has been reviewed.

URLs pointing to sf.net archive + gerrit again.

Your patch has been applied to the master branch.

commit 6a9843ce740760e866dbbf858335a56afe4decf7

Author: Marco Baffo
Date:   Fri Sep 12 15:15:19 2025 +0200
     push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()

     Signed-off-by: Marco Baffo <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://sourceforge.net/p/openvpn/mailman/message/59232447/
     URL: https://gerrit.openvpn.net/c/openvpn/+/1177
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#11 lore raw

[Openvpn-devel] [XS] Change in openvpn[master]: push-update-server: comment about buf_string_compare_advance() usage ...

In reply to a message not in the archive

cron2 has uploaded a new patch set (#4) to the change originally created by mrbff. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()
......................................................................

push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()

Change-Id I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb

Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59232447/
URL: https://gerrit.openvpn.net/c/openvpn/+/1177

---
M src/openvpn/push_util.c

1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/1177/4

src/openvpn/push_util.c +4 -0
index bd3992b..f7a4fca 100644
@@ -161,6 +161,10 @@
          * will not be routed towards the client.
          * For the same reason we later update the vhash too in
          * `send_push_update()` function.
+         * Using `buf_string_compare_advance()` we mimic the behavior
+         * inside `process_incoming_push_msg()`. However, we don't need
+         * to check the return value here because we just want to `advance`,
+         * meaning we skip the `push_update_cmd' we added earlier.
          */
         buf_string_compare_advance(&msgs[i], push_update_cmd);
         if (process_incoming_push_update(c, pull_permission_mask(c), option_types_found, &msgs[i], true) == PUSH_MSG_ERROR)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 4
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#12 lore raw

[Openvpn-devel] [XS] Change in openvpn[master]: push-update-server: comment about buf_string_compare_advance() usage ...

In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email )

Change subject: push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()
......................................................................

push-update-server: comment about buf_string_compare_advance() usage in send_single_push_update()

Change-Id I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb

Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59232447/
URL: https://gerrit.openvpn.net/c/openvpn/+/1177

---
M src/openvpn/push_util.c

1 file changed, 4 insertions(+), 0 deletions(-)
src/openvpn/push_util.c +4 -0
index bd3992b..f7a4fca 100644
@@ -161,6 +161,10 @@
          * will not be routed towards the client.
          * For the same reason we later update the vhash too in
          * `send_push_update()` function.
+         * Using `buf_string_compare_advance()` we mimic the behavior
+         * inside `process_incoming_push_msg()`. However, we don't need
+         * to check the return value here because we just want to `advance`,
+         * meaning we skip the `push_update_cmd' we added earlier.
          */
         buf_string_compare_advance(&msgs[i], push_update_cmd);
         if (process_incoming_push_update(c, pull_permission_mask(c), option_types_found, &msgs[i], true) == PUSH_MSG_ERROR)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 4
Gerrit-Owner: mrbff <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged